package cn.wxq.daily.empdailymgforserve.service.impl;

import cn.wxq.daily.empdailymgforserve.domain.AddTest;
import cn.wxq.daily.empdailymgforserve.mapper.AddTestDao;
import cn.wxq.daily.empdailymgforserve.service.AddTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class AddTestServiceImpl implements AddTestService {
    @Autowired
    private AddTestDao addTestDao;

    @Override
    public int addTest(AddTest addTest) {
        Date date=new Date();
        addTest.setCreateTime(date);
        System.out.println("当前时间：" + addTest.getCreateTime());
        return addTestDao.addTest(addTest);
    }
}
